package com.netease.pris.protocol;

import com.netease.pris.atom.ad;
import com.netease.pris.atom.o;
import com.netease.pris.atom.p;
import com.netease.pris.atom.r;
import com.netease.pris.atom.u;
import com.netease.pris.atom.userinfo.UserInfo;
import java.util.LinkedList;

public class a
  implements g
{
  static final String a = "PRISReader";
  b b;
  d c;

  public a(b paramb)
  {
    this.b = paramb;
  }

  public com.netease.f.b a(com.netease.f.b paramb, String paramString, int paramInt)
  {
    Object localObject;
    if (paramInt == 0)
      if (paramString.equals("feed"))
        localObject = new ad();
    while (true)
    {
      return localObject;
      if (paramString.equals("entry"))
      {
        localObject = new u();
        continue;
      }
      if (paramString.equals("usrsubsummary"))
      {
        localObject = new com.netease.pris.atom.userinfo.b();
        continue;
      }
      if (paramString.equals("error"))
      {
        localObject = new p();
        continue;
      }
      if (paramString.equals("userinfo"))
      {
        localObject = new UserInfo();
        continue;
      }
      localObject = new com.netease.f.b(paramString);
      continue;
      if (paramb == null)
      {
        localObject = null;
        continue;
      }
      localObject = paramb.f(paramString);
    }
  }

  public boolean a(com.netease.f.b paramb)
  {
    if (this.c == null)
      this.c = new d();
    if ((paramb != null) && ((paramb instanceof ad)))
      this.c.g = ((ad)paramb);
    if (this.b != null)
      this.b.a(this.c);
    return false;
  }

  public boolean a(com.netease.f.b paramb1, com.netease.f.b paramb2, int paramInt)
  {
    return false;
  }

  public boolean b(com.netease.f.b paramb)
  {
    if (this.b != null)
    {
      if ((paramb instanceof p))
        this.b.a((p)paramb);
    }
    else
      return false;
    if ((paramb instanceof com.netease.pris.atom.userinfo.b))
    {
      com.netease.pris.atom.userinfo.b localb = (com.netease.pris.atom.userinfo.b)paramb;
      this.c.a(localb.a());
      this.c.a(localb.c());
      if (localb.b() != null)
        this.c.h = localb.b();
    }
    while (true)
    {
      this.b.b(this.c);
      break;
      if ((paramb instanceof u))
      {
        this.c.h.add((u)paramb);
        this.b.a((u)paramb);
        continue;
      }
      if ((paramb instanceof ad))
      {
        this.c.g = ((ad)paramb);
        continue;
      }
      if (!(paramb instanceof UserInfo))
        continue;
      this.c.a((UserInfo)paramb);
    }
  }

  public boolean b(com.netease.f.b paramb1, com.netease.f.b paramb2, int paramInt)
  {
    if ((this.b != null) && (paramb2 != null))
    {
      if (!(paramb2 instanceof u))
        break label48;
      this.c.h.add((u)paramb2);
      this.b.a((u)paramb2);
    }
    while (true)
    {
      return false;
      label48: if ((paramb2 instanceof r))
      {
        this.c.i.add((r)paramb2);
        continue;
      }
      if (!(paramb2 instanceof o))
        continue;
      this.c.j.add((o)paramb2);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.protocol.a
 * JD-Core Version:    0.6.0
 */